import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
// 初始化样式表
import '@/styles/index.scss'
import 'element-plus/theme-chalk/dark/css-vars.css'
import './styles/element.scss'
// 导入svgIcon
import installIcons from '@/icons'
// 导入守卫
import './permission'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
installElementPlus(app)
installIcons(app)
app
  .use(store)
  .use(ElementPlus, {
    locale: zhCn
  })
  .use(router)
  .mount('#app')
